package hz.mobileproject.pda.toolsmanager.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import org.xutils.view.annotation.ViewInject;

import java.util.List;

import hz.mobileproject.pda.R;
import hz.mobileproject.pda.toolsmanager.bean.JuLuLeftClickBean;
import hz.mobileproject.pda.ui.base.BaseCustomAdapter;

/**
 * Created by Lc on 2018/5/4.
 */

public class JiLuLeftClickAdapter extends BaseCustomAdapter<JuLuLeftClickBean,JiLuLeftClickAdapter.ViewHolder> {

    public JiLuLeftClickAdapter(Context mContext, List<JuLuLeftClickBean> list) {
        super(mContext, list);
    }

    @Override
    protected int bindView() {
        return R.layout.item_jilu_left;
    }



    @Override
    protected ViewHolder createViewHolder() {
        return new ViewHolder();
    }

    @Override
    protected void bindData(int position, View convertView, ViewHolder viewHolder) {
        viewHolder.tv_name.setText(mList.get(position).name);

    }

    class ViewHolder{
        @ViewInject(R.id.tv_name)
        private TextView tv_name;


    }
}
